package com.lz.autotest.project.testmanage.envmanage.domain;

import com.lz.autotest.common.web.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author: X
 * @date: Created in 2023/7/31 10:34
 * @Description:
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "环境配置 Request VO")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class TsstEnv extends BaseDomain implements Serializable {
    /**
     * env_id
     */
    @ApiModelProperty(value = "环境ID", example = "10001")
    private Long envId;

    /**
     * env_name
     */
    @ApiModelProperty(value = "环境名称", required = true, example = "127.0.0.1:8080")
    @NotEmpty(message = "环境名称不能为空")
    @Length(min = 4, max = 20, message = "账号长度为 4-20 位")
    private String envName;

    /**
     * address
     */
    @ApiModelProperty(value = "前置URL", required = true, example = "http://127.0.0.1:8080")
    @NotEmpty(message = "前置URL不能为空")
    @Length(min = 4, max = 20, message = "账号长度为 4-20 位")
    private String address;

    /**
     * status
     */
    @ApiModelProperty(value = "服务状态", required = true, example = "1")
    @NotEmpty(message = "服务状态不能为空")
    private Integer envStatus;
    /**
     * 默认环境
     */
    @ApiModelProperty(value = "服务状态", example = "1")
    private Integer isDefault;

    private Integer[] envStatuss;
}
